<template>
	<view class="pd">

		<view class="mt20 pd pt20 pm20 sdfcxxvcxcgert" v-for="sd in kdsfsdf">
			<view class="fz32 display-flex">
				<view class="flex-1 fz36 b">
					{{jxczxf}}
				</view>
				<view class="z9 fz24 vertical-center">
					{{timeFrom(sd.createTime)}}
				</view>
			</view>
			<view class="mt20 fz26 z9">
				{{sd.msg}}
			</view>
		</view>
	<view class="vertical-center mt100" v-if="kdsfsdf.length<=0">
	
			<image src="../../static/img/noData.png" class="xczxcertfdgtrr"></image>
			<view class="mt20 z9 fz24">
				暂无数据!
			</view>
	
	</view>

	</view>
</template>
<script lang="ts" setup>
	import { ref } from "vue"
	import { hf, hfer, hfsan, dxrequest, VerifyTheLogin,timeFrom } from "@/util/index.js"
	import { onShow,onLoad } from "@dcloudio/uni-app"
	const type = ref()
	const kdsfsdf = ref([])
	const jxczxf = ref()
	const inisssd  = async()=>{
		uni.showLoading({
			title:"加载中"
		})
		const {data} = await dxrequest("/api/notice/page",{
			limit:999,
			page:1,
			type:type.value
		})
		kdsfsdf.value = data.list
		uni.hideLoading()
	}
	onLoad((data)=>{
		uni.setNavigationBarTitle({
			title:data.title
		})
		jxczxf.value = data.title
		type.value = data.type
		inisssd()
		
	})

</script>

<style scoped>
	.sdfcxxvcxcgert {
		background: #fff;
		border-radius: 8rpx;
	}
</style>